<table class="table table-bordered">
	<thead>
		<tr>
			<th>KEY</th>
			<th>VALUE</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>App Code</td>
			<td><font>{{ entry.prj_code }}</font></td>
		</tr>
		<tr>
			<td>App Name</td>
			<td><font>{{ entry.app_name }}</font></td>
		</tr>
		<tr>
			<td>Bundle ID</td>
			<td><font>{{ entry.get_full_bundle_id }}</font></td>
		</tr>
		<tr>
			<td>Platform</td>
			<td><font>{{ entry.get_platform_display }}</font></td>
		</tr>
		{% if entry.platform == 'I' %}
			<tr>
				<td>Apple ID</td>
				<td><font>{{ entry.app_id }}</font></td>
			</tr>
			<tr>
				<td>URL-Scheme</td>
				<td><font>{{ entry.get_url_scheme }}</font></td>
			</tr>
		{% endif %}
		<tr>
			<td>Display Name</td>
			<td><font>{{ entry.appextrainfo.display_name|default_if_none:'' }}</font></td>
		</tr>
		<tr>
			<td>Flurry Key</td>
			<td><font>{{ entry.flurry_key|default_if_none:'' }}</font></td>
		</tr>
		<tr>
			<td>GA Key</td>
			<td><font>{{ entry.ga_key|default_if_none:'' }}</font></td>
		</tr>
        <tr>
			<td>QuantCast Key</td>
			<td><font>{{ entry.quantcast_key|default_if_none:'' }}</font></td>
		</tr>
		{% for r in entry.adsinfo_set.all %}
			{% if r.status in 'FN' %}
				{% for u in r.get_units %}
					<tr>
						<td>{{ u.unit }}</td>
						<td>
							{% if r.status == 'F' %}
								<font>{{ u.value }}</font>
							{% else %}
								Waiting for fulfilling...
							{% endif %}
						</td>
					</tr>
				{% endfor %}
			{% endif %}
		{% endfor %}
		{% for cross_promo in entry.crosspromoreq_set.all %}
			{% if cross_promo.status in 'PR' %}
				{% for u in cross_promo.get_token %}
					<tr>
						<td>{{ u.token }}</td>
						<td>
							{% if cross_promo.status == 'R' %}
								<font>{{ u.value }}</font>
							{% else %}
								Waiting for fulfilling...
							{% endif %}
						</td>
					</tr>
				{% endfor %}
			{% endif %}
		{% endfor %}
		{% if entry.iapinfo_set.all %}
			<tr>
				<td>IAP List</td>
				<td>
					{% for i in entry.iapinfo_set.all %}
						{% if i.status == 'F' %}
							{% for iap in i.get_iap_list %}
								{{ iap.name }} | {{ iap.prd_id }} | {{ iap.type }} | {{ iap.price }} <br />
							{% endfor %}
						{% elif i.status == 'N' %}
							Waiting for fulfilling...<br />
						{% endif %}
					{% endfor %}
				</td>
			</tr>
		{% endif %}
		{% if entry.platform == 'A' %}
			<tr>
				<td>Public Key</td>
				<td id="pub_key">
					{% if entry.pub_key %}
						{{ entry.pub_key }}
					{% else %}
						Waiting for fulfilling...
					{% endif %}
				</td>
			</tr>
		{% endif %}
		<tr>
			<td>Code Directory</td>
			<td>
				{% for v in entry.appversion_set.all %}
					V{{ v.code }} - {{ v.code_dir|default_if_none:'Waiting for fulfilling...'|urlize }}<br />
				{% endfor %}
			</td>
		</tr>
		<tr>
			<td>SDK in Use</td>
			<td>
				{% for v in entry.appversion_set.all %}
					{% if v.sdk_required.all %}
						V{{ v.code }}:<br />
						{% for sdk in v.sdk_required.all %}
							&nbsp;&nbsp;&nbsp;&nbsp;
							{{ sdk }}<br />
						{% endfor %}
					{% endif %}
				{% endfor %}
			</td>
		</tr>
	</tbody>
</table>
